import http from '@/utils/httpd';

const apiUrl = 'api/account';

export function getList(params){
    return http.get(apiUrl+"?type=getList",params);
}

export function getInfo(params){
    return http.get(apiUrl+"?type=getInfo",params);
}

export function logout(params){
    return http.get(apiUrl+"/logout",params);
}
export function uploadFile(params){
    return process.env.VUE_APP_BASE_URL+apiUrl+"?type=uploadFile";
}
export function updateInfo(params){
    return http.post(apiUrl+"?type=updateInfo",params);
}

export function updatePwd(params){
    return http.post(apiUrl+"?type=updatePwd",params);
}
export function login(params){
    return http.post(apiUrl+"?type=login",params);
}
export function regedit(params){
    return http.post(apiUrl+"?type=regedit",params);
}

export function userAdd(params){
    return http.post(apiUrl+"?type=userAdd",params);
}

export function deleteData(params){
    return http.get(apiUrl+"?type=delete",params);
}